package com.lanhai.longheng.interfaces;
 

import com.lanhai.longheng.beans.ControlAreaBean;
import com.lanhai.longheng.dao.ControlAreaDao;

/**
 *  
 * @author zhengwei
 *
 */
public interface IControlArea {
	
	ControlAreaBean getBean(long areaId); 
	
	void saveCache(ControlAreaBean bean);
  
	long getAreaId(int x, int y);

	boolean lockArea(long areaId, int agvId);
 

	void unlockArea(long areaId);
 
	void clearArea();

	boolean isLocker(long areaId, int agvId);
	void removeStopAgv( int agvId);

	boolean addStopAgv(long areaId, int agvId);

	boolean isService(long areaId);
  
	void getAllList();
	
	ControlAreaDao getArea(long areaId);
	
	void removeStopAgv(long areaId, int agvId);
}
